Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

Redux + React-Redux 入門

Redux + React-Redux 入門

我知道你懂 hoisting,可是你了解到多深?

我知道你懂 hoisting,可是你了解到多深?

A todo list with React + Redux

A todo list with React + Redux


Comments